<?php

$this->headScript()->appendFile("/js/admin/material.js");

?>

<script type="text/javascript">

var <?= $this->jqgrid->jsObject ?> = {
    gridId: "<?= $this->jqgrid->tableId ?>",
    pagerId:  "<?= $this->jqgrid->pagerId ?>",
    opt: <?= $this->jqgrid->invokeParams ?>
};

var $f = <?= $this->jqgrid->jsObject ?>;

initMaterialButtons(<?= $this->jqgrid->jsObject ?>, {
     buttons: [
            //select materials
            {
                onClickButton: function(params) {
                    $f.selectObjects(params);
                }
            }
        ]
});

</script>
<?= $this->jqgrid ?>
<br/>

<div>
	<a href="<?= $this->backUrl ?>">К списку разделов</a>
</div>